<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Document</title>
</head>

<body>
  <script>
    //  const rem=function(){
    //   alert('雷林林')
    //  } 
    // const rem = () => {
    //   alert('雷林林')
    // }
    // rem()
    // const res =x =>{
    //   console.log(x + 1);
    // }
    // res(1)
    // const res = (num1, num2) => num1 + num2
    // console.log(res(1,2));
    // const res = name => ({ uname: name })
    // console.log(res('柳德湖'));
    const res=function(name){
      return {uname:name}
    }
    console.log(res('刘德华'));
  </script>
</body>

</html>